package com.dongdongshop.enums;

public enum ResultEnum {
    SUCCESS(0,"操作成功"),
    ERROR(-1,"操作失败"),
    ARG_NULL_ERROR(1,"参数不能为空"),
    UNKNOWN_USER_NAME_PASSWORD(2,"账号或密码错误"),
    LOGIN_SUCCESS(3,"登录成功"),
    INVALID_TOKEN(4,"无效的token"),
    ACCOUNT_ERROR(5,"账号状态异常"),
    ADD_NAME_REPEAT(6,"登录名重复");

    private Integer code;
    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
